class StringSplit{
	public static void main(String args[]){
		String s = "int x;x=10;x=x";
		String[] s2 = s.split(";");
		
		for (int i = 0; i < s2.length; i++)
			System.out.println(s2[i]);

		String ss = "a,b,c;d,e,f;g,h";
		String [] temp = ss.split(";");
		String[][] ss2 = new String[temp.length][];
		for (int i = 0; i < temp.length; i++){
			String[] temp2 = temp[i].split(",");
			ss2[i] = new String[temp2.length];
			for (int j = 0; j < temp2.length; j++)	{				
				ss2[i][j] = temp2[j];				
			}
		}
		for(int i = 0; i<ss2.length;i++){
			for(int j = 0; j<ss2[i].length;j++){
				System.out.println(ss2[i][j]);
			}
		}
	}
}